package com.xuhai.blog19.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuhai.blog19.admin.entity.UserEntity;
import com.xuhai.blog19.admin.form.LoginForm;
import com.xuhai.blog19.admin.form.PasswordForm;
import com.xuhai.blog19.common.utils.R;

/**
 * @Author PangJunjie
 * @Date 2023/2/6/006
 */
public interface UserService extends IService<UserEntity> {
    R login(LoginForm loginForm);

    void saveOrUpdateInfo(UserEntity user);

    void updatePassword(PasswordForm passwordForm);

    IPage<UserEntity> getPage(int page, int limit, UserEntity user);

}
